package com.homework6;

public class Cuboid extends Rectangle {
    private int heigth;

    public Cuboid(int length, int wide, int heigth) {
        super(length, wide);
        this.heigth = heigth;
    }

    public Cuboid() {

    }

    public int getHeigth() {
        return heigth;
    }

    public void setHeigth(int heigth) {
        this.heigth = heigth;
    }
    public void counter(){
        super.counter();
        System.out.println("体积是："+getLength()*getHeigth()*getWide());
    }
}
